package com.ruoyi.appVersion.domain;

import com.google.common.base.Splitter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 脚本版本对象 app_version
 * 
 * @author ruoyi
 * @date 2022-06-06
 */
public class AppVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer ver;

    /** 包名 */
    @Excel(name = "包名")
    private String appName;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private Long ts;

    /** 安装包地址 */
    @Excel(name = "安装包地址")
    private String apkurl;

    /** 脚本地址 */
    @Excel(name = "脚本地址")
    private String scripturl;

    /** 升级内容 */
    @Excel(name = "升级内容")
    private String content;

    /** 升级方式 */
    @Excel(name = "升级方式")
    private Integer updateType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVer(Integer ver) 
    {
        this.ver = ver;
    }

    public Integer getVer() 
    {
        return ver;
    }
    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }
    public void setTs(Long ts)
    {
        this.ts = ts;
    }

    public Long getTs()
    {
        return ts;
    }
    public void setApkurl(String apkurl) 
    {
        this.apkurl = apkurl;
    }

    public String getApkurl() 
    {
        return apkurl;
    }
    public void setScripturl(String scripturl) 
    {
        this.scripturl = scripturl;
    }

    public String getScripturl() 
    {
        return scripturl;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setUpdateType(Integer updateType) 
    {
        this.updateType = updateType;
    }

    public Integer getUpdateType() 
    {
        return updateType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ver", getVer())
            .append("appName", getAppName())
            .append("ts", getTs())
            .append("apkurl", getApkurl())
            .append("scripturl", getScripturl())
            .append("content", getContent())
            .append("updateType", getUpdateType())
            .toString();
    }
}
